package Volume1.ch10;

import javax.swing.*;

/**
 * 10-1: 空框架测试
 * @Auther jacob
 * @Date 2020/8/15 23:55
 */
public class SimpleFrameTest {
    public static void main(String[] args) {
        SimpleFrame simpleFrame = new SimpleFrame();
        simpleFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        simpleFrame.setVisible(true);
//        simpleFrame.setUndecorated(true);
    }
}

class SimpleFrame extends JFrame{
    private static final int DEFAULT_WIDTH = 300;
    private static final int DEFAULT_HEIGHT = 200;

    public SimpleFrame(){
        setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);
    }
}
